//导入service对象
import service from "../utiles/request/index";

//职务管理列表
export function office_managelist(payload = {}) {
    return service.get('/job/findall', { params: payload })
}
//职务管理新增
export function office_manageadd(payload = {}) {
    return service.post('/job/insert', payload)
}
// 职务管理编辑
export function office_manageupdata(payload:any = {}) {
    return service.post('/job/update', payload)
}
// 职务管理删除
export function office_managedelete(payload:any = {}) {
    return service.post('/job/delete', payload)
}


//岗位管理列表
export function job_managelist(payload = {}) {
    return service.get('/organization/job_managelist', { params: payload })
}
//岗位管理新增
export function job_manageadd(payload = {}) {
    return service.post('/organization/job_manageadd', payload)
}
// 岗位管理编辑
export function job_manageupdata(payload = {}) {
    return service.post('/organization/job_manageupdata', payload)
}
// 岗位管理删除
export function job_managedelete(payload: any = {}) {
    return service.get('/organization/job_managedelete/'+payload.id, payload)
}

//组织管理列表
export function organization_managelist(payload = {}) {
    return service.get('/organization/managelist ', { params: payload })
}
//组织管理新增
export function organization_manageadd(payload = {}) {
    return service.post('/organization/manageadd', payload)
}
// 组织管理编辑
export function organization_manageupdata(payload:any = {}) {
    return service.post('/organization/manageupdata', payload)
}
// 组织管理删除
export function organization_managedelete(payload:any = {}) {
    return service.get('/organization/managedelete/'+payload.id, payload)
}